/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.menosehmais.model;

import br.com.menosehmais.framework.persistence.IMustBeCounted;
import br.com.menosehmais.framework.persistence.ViewDO;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * Contera todos os registros que se associem a visualizacao de portlets
 * realizadas pelos seus usuarios
 * @author Junior JAFJ
 */
@Entity
@Table(name="portlet_view")
public class PortletViewDO extends ViewDO<PortletDO> implements IMustBeCounted<PortletViewDO, PortletViewCountDO> {

    @Override
    public String referecedId() {
        String refId = null;
        if (this.getReferenceId() != null) {
            refId = this.getReferenceId();
        }
        return refId;
    }

    @Override
    public Class<PortletViewCountDO> magicCounterClass() {
        return PortletViewCountDO.class;
    }

    @Override
    public void setAccount(UsuarioDO account) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public UsuarioDO getAccount() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
